// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

export const getOrganizationByLevel = (level) => {
  return postRequest('/organization/getByLevel', level)
}

export const getFacilitator = (params) => {
  return postRequest('/facilitator/getAllList', params)
}

export const checkName = (name) => {
  return postRequest('/facilitator/checkName', name)
}

export const insertFacilitator = (params) => {
  return postRequest('/facilitator/insert', params)
}

export const updateFacilitator = params => {
  return postRequest('/facilitator/update', params)
}

export const getAllFacilitator = () => {
  return postRequest('/facilitator/getList')
}

export const getBankAccount = (params) => {
  return postRequest('/bankAccount/getAccount', params)
}

export const insertBankAccount = (params) => {
  return postRequest('/bankAccount/insert', params)
}

export const updateBankAccount = (params) => {
  return postRequest('/bankAccount/update', params)
}

export const getSupplier = params => {
  return postRequest('/supplier/getList', params)
}

export const getAllSupplier = () => {
  return postRequest('/supplier/getAll')
}

export const updateSupplier = params => {
  return postRequest('/supplier/update', params)
}

export const insertSupplier = params => {
  return postRequest('/supplier/insert', params)
}

export const getCompanyType = params => {
  return postRequest('/typeName/getList', params)
}

export const checkCompany = params => {
  return postRequest('/supplier/checkCompany', params)
}

export const getCustomer = params => {
  return postRequest('/customerCompany/getList', params)
}

export const getAllCustomer = () => {
  return postRequest('/customerCompany/getAll')
}

export const checkCustomer = params => {
  return postRequest('/customerCompany/checkCompany', params)
}

export const insertCustomer = params => {
  return postRequest('/customerCompany/insert', params)
}

export const updateCustomer = params => {
  return postRequest('/customerCompany/update', params)
}

export const getService = params => {
  return postRequest('/serviceCompany/getList', params)
}

export const checkService = params => {
  return postRequest('/serviceCompany/checkCompany', params)
}

export const insertService = params => {
  return postRequest('/serviceCompany/insert', params)
}

export const updateService = params => {
  return postRequest('/serviceCompany/update', params)
}
